package cn.pn.project.controller;

import cn.pn.project.client.commodity.TicketInfoFeign;
import cn.pn.project.pojo.commodity.Ticketinginfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/item/ticketInfo")
public class TicketInfoController {
    @Autowired
    private TicketInfoFeign ticketInfoFeign;
    @RequestMapping(value = "/getTicketInfoByCommodityId", method = RequestMethod.POST)
    Ticketinginfo getTicketInfoByCommodityId(@RequestParam("commodityId") Integer commodityId){
        return ticketInfoFeign.getTicketInfoByCommodityId(commodityId);
    }

}
